package us.icitap.cm.ui.shared;


import com.vaadin.data.Item;
import com.vaadin.data.Property;
import com.vaadin.ui.Label;
import com.vaadin.ui.Table;
import com.vaadin.ui.Table.ColumnGenerator;

public class CustColumnGenerator {

public static final ColumnGenerator entityReportAssocValueGenerator = new ColumnGenerator() {
		
		@Override
		public Object generateCell(Table source, Object itemId, Object columnId) {
			final Item item = source.getItem(itemId);
	         final Property prop = item.getItemProperty(columnId);
	         
	         if(prop.getValue() != null){
	        	
	        	final Label label = new Label("");
	        	return label;
	         }
	         else{
	        	 return new Label("");
	         }
		}
	};
	
}
